I manage to fix it it was my avatar it was so old that the new minecraft did not like it but I can try and help you with your problem try simply backing up your game files and delete and install minecraft again as you explained it looks like minecraft is failing to connect to the server I don’t know why or how tho
You also might want to contact customer service tho about it.