If you didn't get a lot of sleep, it may be a good idea to take the day off the gym.
Rearrange your routine so you can catch up on some sleep if possible and lift on your off day.
When sleep deprived, it's possible you haven't had enough rest time in between gym sessions.
Injury could also occur because of a lack of focus on form.