Now that you say that.... it usually happens after a climb while stopped getting ready to start she back peddles and it derails so it would be in the highest gear or two? But it's off the crank not the cassette?
Is this occurring most often in the largest rear gear? This is gearing is traditionally considered a "no-no" due to extreme cross-over on the chain-line. If this is the case, good news! There's nothing wrong with her bike. Its completely normal. The crossover condition will improve as the drive train wears in. If its a critical nuisance, take it to your LBS. There are minor adjustments to the hi-lo rear der limit settings, b-tension setting, and the shop can double check the rear der hanger's alignment. If the bike is a 2x (2 chain rings up front), then the additional chain ring (typically the larger one) may be aggravating the condition even further.
I just refreshed my SRAM drive train. I had this EXACT situation for the first ~50-60 miles (5k ft of climbing) and then the chain stretched and settled in. The condition improved with every ride until it no longer occurred. On this particular bike I am running a 1x12, 34t x 11-52t, all Eagle XO, except the cranks are Eagle GX (carbon cranks don't last long for me, so no XO).