Heat the oven. Set it to 375°F (190°C) and grease a 9x13-inch baking dish.
Cook the veggies. In a skillet over medium heat, cook the bell pepper and mushrooms in a drizzle of oil for 5 to 6 minutes, until soft and most of their liquid is gone. Stir in the spinach until it wilts. Skipping this step is how egg bakes get watery, so don’t.
Blend the base. Blend the eggs, cottage cheese, Italian seasoning, garlic powder, salt, pepper and red pepper flakes for about 30 seconds, until smooth. No cottage cheese lumps, just a creamy, custardy bake.
Layer it up. Spread the veggies in the dish. Sprinkle on 1 cup of the mozzarella and half the pepperoni, chopped. Pour the egg mixture over the top.
Bake. Bake for 25 minutes, until the edges are set and the center is almost set.
Add the pizza toppings. Spoon the sauce over the top, then add the remaining ½ cup of mozzarella and the rest of the pepperoni. Bake 8 to 10 minutes more, until the center no longer jiggles and the cheese is bubbly. The center should hit 160°F (71°C) (FoodSafety.gov).
Rest, then slice. Let it sit for 10 minutes so it sets up, then cut it into 6 squares.