Resolving kernel panics in my new KVM with M3 Pro

When I moved a year ago I wanted to set my office to be more usable, and finally pulled the trigger on a two monitor setup. They're designed to work with my personal desktop and my work computer, so I wanted a KVM switch to make it easy to swap. My previous KVM switch only supported one monitor, so I had to upgrade.

Shout out Regina for the art on the pegboard, my brother for the art on the left wall (and the notebook sticker), and Olof Dahlstrand for the tree.
Office setup, complete with a free mousepad from 6 years ago

Unfortunately I found that some combination of the new KVM, my Macbook M3 Pro, and the monitors (two BenQ MA270UPs) were causing my Mac to kernel panic when I closed the laptop and triggered the monitors. I ended up resolving this with four changes, which I'm noting here for posterity:

  1. sudo pmset -a hibernatemode 0 which disabled deep sleep
  2. Battery Options
    1. Prevent automatic sleeping on power adapter when the display is off -> ON
    2. Wake for network access -> Changed from "Only on Power Adapter" to "Never"
  3. Lock Screen
    1. Turn display off on power adapter when inactive -> Changed from "10 minutes" to "Never"

I'm not sure if all of these were necessary, but combined the problem stopped happening.