Even with some of the earlier recommendations - we would still have routers randomly boot back into sd-wan mode. Here is what I finally did that seems to stick; Have a USB stick (with a 4gb partition as FAT32) and the IOS you want to use (I downgrade...
not a valid command on a 4221 We bought 104 of these to replace older 2911's when Cisco went to v7 - - and they have been nothing but a PITA - - wish we would have never changed.