OP, your health comes first. The stress of thinking about this is no doubt a contributing factor. It’s usually better to act, than react, to solve a problem.
Seek medical help. The sooner you do this (assuming OTC meds aren’t helping), the sooner you can be seen by specialists and gain some control and relief. USNA/the Navy wants to keep you if it can, because they have invested in you from the moment they offered you an appointment.
The solution set will be along the range you mentioned, and it would be after treatment, observation and assessment of your case, which is not done overnight. Set your mind to take this one step at a time. You will feel immediate mental relief once you seek help to manage the condition. Down the road, if it means you might be restricted to certain officer communities, well, that is life. It happens. You will be able to handle every aspect of this by fully engaging and taking it as it comes. Life has a way of taking twists and turns, but you are in control of how you feel about it and how you approach it. (Read VADM Stockdale’s two essays on Stoicism, where he makes that point again and again. Some things you have no control over, but you can control your feelings. The essays are on USNA.edu.).
In the meantime, be the absolute best mid you can be, relentlessly cheerful, the go-to person in company, respected by all. Once you get the medical ball rolling, let your SEL and company officer know what’s going on. Don’t be reluctant to let them know your concerns and fears - a fear voiced is a step toward conquering it. Be the mid the chain of command will fight for.
If you catch your brain going into catastrophizing mode, leaping ahead to “oh no, what if,” slow down, try some SEAL box breathing, focus on immediate next steps. Coach yourself to get through this.
If things get rugged, go find a chaplain or counselor at the center. They are there to support you as a young adult, perhaps hitting the first big boulder in their life path.
Keep us posted here if you wish. There are many of us here who have run into our own boulders and adapted.