I had some trouble a couple of months ago. I went to a regular server and didn't even think I could get a virus. I fiddled with my computer for a long time, hoping to fix the situation. So for me, choosing a server is a priority. I even found a site https://servers-minecraft.net, which provides a list of servers that contains all game modes, such as Skyblock, Prison, Factions, Survival, SMP, Towny, and others. And most importantly, everything is tested and safe.