Ps4 shutting down

I have a peculiar problem my PS4 immediately turns off when powering on the monitor or tv.

Otherwise when disconnected from the monitor it works absolutely fine.

I have replaced the power and hdmi cable cleaned the vents but to no avail. Sometimes it stays on about 2 3 days the again the problem occurs.

Any solution to the problem?

Thats a setting. If you go into settings, system, and then make sure enable hdmi device link is unchecked.

Ok thanks will try but it started occouring all of a sudden after 6 years??

Enable hdmi device link is already disabled?

Then what should be the cause?