Hey mine has been doing similar, and when i come out of it my whole tinfoil wont work and i have to delete it off my card and put it back on and reinstall.
its doing it with spyro for me which is 16gb. i have 100gb free on my sd card but only 15 gb on my switch, would that cause the problem?