Preheat oven to 375°F.
Heat olive oil in a skillet over medium heat. Add cauliflower rice and cook 4–5 minutes to release moisture. Set aside.
Season chicken with salt and pepper. Lightly brown in the same skillet 3–4 minutes (not fully cooked).
In a saucepan, heat heavy cream and cream cheese until smooth.
Stir in pesto and garlic powder.
Combine cauliflower rice, chicken, spinach, and pesto cream sauce.
Transfer to a greased baking dish.
Top with mozzarella and optional Parmesan.
Bake 20–25 minutes until bubbly and chicken is cooked through.
Rest 5 minutes before serving.