Boundaries in continuous EEG and PSD calculation

If you want to exclude these bad segments from the PSD computation, mark the event category as bad:
In the Record tab, menu Events > Mark group as bad.
Alternatively, you can rename the events and add the tag "bad_" in their name, it would have the same effect.