Magnesium deficiency can also cause you to feel depressed. If you don't have insurance, try a few supplements. Get the best quality ones that you can afford and check the expiration dates and get the freshest ones you can. I use B-Right by Jarrow. I get it online for about half of the store price.
I do also notice a huge shift in my mental state when I eat junk vs whole foods. For me, wheat also seems to make me feel bloated, sleepy, and a little sad. I limit it now, but didn't realize for so long that the things I craved most were the things that made me feel physically ill.
I hope you figure this out soon because it is scary to feel powerless, but you do have power. Power to figure out what's going on and fix it.

