I'm a bit perplexed by the choice of Nintendo Switch as the example hardware. I was under the impression that the switch was locked down and you can't run offset based cheat software like cheatengine on it.
The early Switches had an exploit in the Nvidia graphics processor that was so low level that the operating system can't be patched to get rid of it, so there are a lot of hackable Switches around.