Heat olive oil in a pan over medium heat. Add garlic and sauté for 1 minute, stirring frequently. Add artichoke hearts and 2 cups of baby spinach. Stir to combine and cook until spinach begins to wilt. Add cream cheese, mayo, salt, pepper and red pepper flakes to pan and stir to combine. Heat through and set aside.