I’ve temporarily fixed the problem with swayidle, but I’m hoping that a kernel update will eventually solve the problem.
nano ~/.config/autostart/swayidle-hibernate.desktop
[Desktop Entry]
Type=Application
Name=Auto Hibernate
Exec=swayidle -w timeout 900 'systemctl hibernate' before-sleep 'loginctl lock-session'
Hidden=false
X-GNOME-Autostart-enabled=true