Preheat your oven to 400°F. Lightly grease a 9 × 13-inch baking dish with cooking spray or a little olive oil. Set aside and heat the olive oil in a medium skillet over medium heat. Add the diced onion and yellow bell pepper. Sauté for 3–4 minutes, stirring occasionally, until the vegetables begin to soften.
Stir in the minced garlic and cook for another minute until fragrant. Remove the skillet from the heat and set the vegetable mixture aside.
Spread a thin layer of red enchilada sauce across the bottom of the prepared baking dish. Arrange one-third of the tortilla pieces over the sauce, overlapping slightly if needed.
Spread half of the sautéed onion and pepper mixture over the tortillas. Add half of the black beans, corn, and diced green chiles. Spoon one-third of the remaining enchilada sauce over the filling and sprinkle with one-third of the shredded Mexican cheese.
Add another layer of tortillas, followed by the remaining vegetables, black beans, corn, and green chiles.
Spoon another portion of enchilada sauce over the filling and sprinkle with another third of the cheese. Finish with the remaining tortillas, enchilada sauce, and shredded cheese.
Cover the baking dish tightly with aluminum foil and bake for 25–30 minutes, until the casserole is heated through and the cheese has melted. Remove the foil during the final few minutes if you prefer a lightly browned cheese topping. Let it rest briefly, then serve with sliced olives, fresh cilantro, and sour cream.