First try unplugging everything & long pressing the on/off button, leave it for a few minutes then connect everything again.
If the problem remains then once you buy a new PS5 just redownload your games & connect the external HDD.
It should be easy, if not then please post back.