The Dynamic Wallpapers Setting may cause randomly Lock Screen while you make switching to different connected systems of your KVM switch.
If you have a KVM switch setup with MacOS systems or laptops connected to the KVM switch, please adjust the Wallpaper setup under System Settings of Sonoma 14.0 Mac OS.
First - DO NOT USE the Stream Dynamic Wallpers. Instead, please pick static Wallpers from pictures or colors. (under Walpaper setting, turn off "Show as screen saver")
Second - Do not use the Wallpaper as the default of your screen saver (under Screen Saver setting, turn off "Show as wallpaper" )
This is not a bug of Sonoma 14.0, but will affect the users' workflows.