Constant disconnect

When trying to play this game with a friend I am constantly disconnected. Sometimes it happens at the end of a level, sometimes mid level. It doesn’t matter who the host is. The longest I managed to play was 2 levels back to back. The most frustrating part is constantly losing progress because I will often disconnect before the level completion screen.

Any help fixing this is greatly appreciated.