In this case, "child safety measures" includes not just "stopping child predators," but also "not letting kids use their parents' credit card to buy $500 of Robux" and "not letting underage users buy lootboxes, aka gambling".
It's completely understandable that the company, which profits off children, putting in measures making it harder to profit off children, would lower both its long and short-term valuations.