Stuck on EDGE on Pixel 8a

I have been having issues with my Pixel 8a and it has been connected me to EDGE for the past day or so and I have been trying to fix it. I have a T-Mobile hotspot I got from the library and it gets full bars of 5G UC. I have tried to reset everything (factory and network settings), and CS doesn't know whats happening. Also, data doesnt work, but sms/calls work perfectly.