If I have 2 {P} Energy and an Aurora Energy or a Rainbow Energy attached to a Galarian Articuno and I use its "Psylaser" attack, do I have to discard the Aurora or Rainbow Energy since I'm not using them as {P} Energy?
Yes. Aurora and Rainbow Energy provide all types of Energy all the time when they are attached to a Pokemon, even if you don't want them to.
Source: TPCi Rules Team (2022-10-13)

Relevant cards

Note: All applicable cards may not be listed below.
SWSH7_63
SWSH7_63
SWSH1_186
SWSH1_186
SM7_151