It seems like you were ok with your plans up until something didn’t line up with them (which is always inevitable, we cannot predict everything), and it’s thrown you off entirely. I also have anxiety and I know I do this too, but ultimately it’s not that big of a change. Your friends are still at the uni, you can still meet up, and talk, and study together, I’d kill for that. It’s probably a god thing you have different timetables because it means you have to meet other people instead of staying in your safe bubble, which is uncomfortable but something we need to get used to in life. You absolutely can take a gap year to have time to think, but I worry that situation would be worse, because then you wouldn’t know anyone. Your friends will be ahead of you. I think you’re relying on your friends, and now you have to choose between pushing through but at least having your friends nearby to meet and study with, or making the safe choice to leave it and risk not being with any friends at all. I hope you can see the point I’m trying to make; something unexpected happened, it’s thrown you off, and you’ve spiralled down to thinking a situation is far worse than it is. Breathe, think things through, and make a choice.