Not that I’m advocating that the helmet is still safe to use but if I glued my helmet in that area I wouldn’t use super glue or gorilla glue. Mainly because that area needs to flex to get the helmet on (at least that’s the case for the flaps on my TT helmet). I’d try some silicone that instead that has some give or some rubber patch like shoe goo to see if they would work.
In the end if that happened to my helmet I’d just be new helmet shopping honestly. Mine is old and I would prefer and aero road type helmet instead for more ventilation. I end up getting way too hot in a traditional TT helmet. For reference I have the old school Giro Advantage 2.