To succeed in your studies you must control your emotions; don’t let them control you!
How to control your emotions? Try dhikr, removing distractions, and training your mind to keep returning to the work in front of you.
Make your emotions work for you by getting enthusiastic about something in your subject and running with it!
(Find more learning and motivational tips here: https://understandquran.com/tips-tricks)