Happens to me every time I switch in flight. I do this to stop auto recording more than anything to reduce file size. It's a quick way instead of bumbling around in the menu then forgetting to turn it back on and miss a shot. That and usually I crank off a few photos for a pano.
I reported it to Skydio and they actually replaced my drone saying it was hardware issue. When I got new one it did the same thing. I just live with it. I'm over reporting to Skydio's support black hole. Their probably tired of me too. Being a data and intelligence software engineer I have knack for finding bugs. For the longest time I sent them bug reports on the regular, at least 2-3 a month. But after so many false promises of fixing stuff I've given up. If it doesn't crash my drone at this point I don't care. If it does I'm buying a S2+. Win win?