Connection "issues"

I just got kicked out of a game what was going for about an hour and we were winning.

Out of nowhere I get attempting to reconnect and then rrconnected and then the cycle repeats until I was finally kicked for good.

Nothing was wrong with my internet, full connection, I went into task manager and saw something that might be downloading and forced stopped it went back in but the game was still attempting to reconnect.

Why does this happen? Why cant it reconnect? There is almost not a single game I played were these type of connection issues appear. Its really annoying, I am not planning on spending an hour of my time to then get disconnected because the game doesnt work properly.

Does anyone know a way to maybe prevent this from happening?