At my first sight, without knowing your domain name, it indicates to me it could be due to SSL options at Cloudflare.
So, meaning when is for your A www and A yourdomain.com, you get 521 error?
On which port does your NodeJS app running on?
Can you check compatible ports with Cloudflare and proxy your NodeJS on/over Nginx on one of the compatible ports (depending if you already have an SSL certificate at your host/origin - using HTTP or HTTP)?