How to avoid warning about machine suspending soon when it never does?

The lock screen on my desktop (connected to mains, with no UPS) keeps showing a message that it’s about to suspend, but never does. What could cause this, and how do I avoid it? All the relevant config should be here.