Take the male out as soon as possible and keep him in a temporary enclosure. That was the mistake I made with my 1st 2 bacthes because I was (still am) a beginner when I had a female give birth and then actually had another one give birth the next day, so I had 2 females fully gravid giving birth. In my 20 gal, I had 3 Females and a Male that lived fine with each other.
I didn't do anything at all when the mothers had their scorplings becuase I thought nature would do it's thing but, honestly, an enclosure is a controlled environment. All of the 30+ babies died but 3
and there was a lot of fighting going on that ended up in one being killed.
But I was lucky enough to be able to get a 3rd try about 2 months later when my 3rd female gave birth. Here's a link to see how that went.
LinkCannabalism is normal, they will eat more than one, or none or even all.
So yeah, get the mother alone, she'll carry for about 2 weeks. If you want, move her to a temporary place that has the forest setup that way she isn't stressed by that anymore. They should not be on sand, but I understand you were misinformed. It happens. I'd get HER out of their. Scoop her up and drop her in a new enlosure that is setup correct. A 10 gallon tank is what I used, their small and worked great.
After you move her, move him into a glass or container and fix the old home to be suitable aswell. Then slap him back in. Once the sligs (Slang for Scorplings) have moved off her back, rearrange the old enclosure and put her back in with her cage mate. Then create a suitable environment for the slig in what you kept the mom in and BAM! Just follow the guide to raising a P. Imperator and you'll be set.