What is the best KVM switch for my setup

I currently operate the following:

-Dell Laptop - For work

-34 Inch Monitor VG27B - For work and Desktop

-Razer DeathAdder

-Razer Huntsman V2

How I use them currently?

I have a $50 Switch that switches my peripherals between my Laptop+34 Inch(for work)

and 34 inch (for desktop)

Issues:

  1. My peripherals would disconnect every now and then. Primarily the mouse.

  2. When I’m playing games on my desktop, my screen freezes completely although the keyboard works but the mouse does not work during the freeze.

-When I’m not playing games I do not disconnect at all.

-When Peripherals are plugged direct to the Desktop there is also no freezing(screen) or disconnecting(peripherals).

For this setup what KVM switch would you recommend?