The PS5 has never had a public exploit. The PS4 was broken, but only on certain firmwares.
The Xbox One has not been cracked in 12 years. And no, the lack of exclusives or the addition of Dev Mode is only a small part of the reason.
The Switch OS (Horizon) is a microkernel, and according to people who have observed it, extremely secure. It's more intrinsically secure than the Xbox and PlayStation OSs. NVIDIA screwed up - not Nintendo. SciresM (an Atmosphere developer) has publicly stated that he believes the Switch 2 will have no useful software exploits, ever. Even on the current Switch, we've not had any kernel or useful software exploits in the last five years.