As fja3omega mentioned in a comment, your best bet is probably to use fast travel to move somewhere else. On Windows, you can use the console, but that isn’t possible for the PS4. You just need to hit the tilde key (~) while playing the PC version of Skyrim to bring up the command console.
In addition, How do I enable cheats in Skyrim?
Good ol’ God Mode means you’re completely invulnerable to everything. Toggle commands for Skyrim turn various game features off or on.