User profile service failed the logon User profile cannot be loaded

Just received an error where I was unable to log in to my Windows account on my VM. The error was

“User profile service failed the logon”
“User profile cannot be loaded”

The solution involves booting to safe mode and switching to a backup of your profile using RegEdit.

I found this helpful video takes you through the step