Struggling to maintain weight

Options
I’ve been going to the gym for a few months January-March but have had to quit and study for final exams in May/June. I’m struggling to maintain my calories at 1800 without the time/energy to exercise in a regular routine, and tend to overeat when I’m stressed. Any advice?