You should add both domain variants (with and without "www") on your Shopify domains admin page and select your primary domain the one with "www".
This is an accepted solution.
Nope, i guess your settings are fine. Only the option without the www should be under the third-party domains section and that is to redirect your traffic from
domain.com to www.domain.com