Try turning your phone off, waiting a few moments and then restarting it before another attempt to install the app.
If that doesn't work, try clearing the cache and data from Google Play Store before another attempting at installing the Messenger app. See 'Clear cache & data from Google Play Services' here:
https://support.google.com/googleplay/answer/7513003?hl=en#zippy=%2Cclear-cache-data-from-google-play-services
If still no joy, try clearing the Facebook cache before yet another attempt. Go to Settings –> Apps and notifications –> See all apps and tap Facebook. Open Storage and cache and select Clear cache.