This can happen.
I suppose one of you is preparing to move out and it will take a few weeks or days before it happens.
Use this time wisely!
First, stand in total respect towards each other.
Second, see this as a crisis situation that requires emergency measures.
It won't last.
You will soon be free from this set up.
In the meantime, do whatever it takes to reclaim your freedom and stay focused.
You can spend a couple of nights at a friend's place if needed.
Refocus on your work.
Activate your social life and see other people.
Train!
Take a trip for a couple weeks until he's out.
Do all these things that give you energy and rebuild your power!