This situation is dangerous but you can always listen to how your body feels in your practice and make necessary changes.
This may mean you need to stop playing before your fingers or your back or your ankles start to feel tired.
It's easy to get lost in the music, to feel the pressure of the deadline approaching, to push yourself too much.
But if you want to practice for long years to come, you need to relax, breath deeply and slowly and not to overexert yourself.
The hard part is figuring out the right practice plan (the choice of music, the choice of practice routine, the choice of fingering and pedaling) in advance so that you don't need to overexert yourself.