Don’t mask those targets. If you did, you can undo it by changing mask
to unmask
.
You can disable suspend in power settings, see the Solution section here: GNOME suspends after 15 minutes of user inactivity, even on AC power The issue in that post may be relevant to you as well.