Prevent SMS deletion when removing Google Account
The only way to remove your main Google account is to factory reset the phone which removes everything. Your best bet will be to download an app that can backup your SMS to a file.