You should carve out the foam and fill. You blocked off much needed ventilation. You should also add more ventilation. A lot more.
I would install more windows (backed with 1/2" hardware cloth) at roost height so you can open them during the hot summer months.
It appears to be pretty sturdy. I...