Breaking things down step by step. By this I mean break down what you have to do in baby steps. You will feel a sense of accomplishment and if you have mini deadlines you will hopefully help yourself keep on track.
Reward yourself. This does not have to be food or money related at all and you can reward yourself for the smallest things like organising your time for the week ahead. Some examples of rewards include a planned night our or night in with friends or by yourself. Whatever you feel works for you.
Take regular breaks and be kind to yourself. Try out some studying techniques like the pomodoro technique where you study for 25 minutes and take a 5 minute break. After a few rounds of this such as 4 you take a longer break.
Keep doing hobbies that you enjoy. Balancing uni and life is tough but doing uni work will be harder if you do not focus on maintaining your wellbeing.