I'm guessing you use rest mode? I'm also guessing the power is coming from the USB port.
I can't remember how it works for PS4 but I presume it's similar to the PS5 instructions below, if not, turning the PS4 off should work.
If so on your PS5 go to Settings -> System -> Power Saving -> Features Available In Rest Mode -> Supply Power To USB Ports and either turn off the power to the USB ports, or put the 3 hour time limit on them, or turn the machine off completely (best option IMHO).
Of course if your not using rest mode then disregard everything I've written