Site not loading after upgrade Lightsail instance

Regarding Cloudflare 521 error, may I suggest you to take a look into below article to troubleshoot the issue, therefore if you already did may I ask what have tried so far from the suggestions below?: :thinking:

Maybe something at the Lightsail firewall changed or need to be fixed?
For example, kindly re-check if Cloudflare is allowed to connect to your origin host to as follows in the below article:

Nevertheless, Cloudflare IP addresses list can be found here:

Before moving to Cloudflare, was your Website working over HTTPS connection?