I have embedded a few Sway iframes of late and working well..
You probably need to work backwards and look at a few things..
Your hosting/server settings.
Does your Moodle allow iframes to be dropped in..
There are settings that control this, if I remember correctly.
Are you missing any codes as you drop them in?
Maybe next time.you post add more info of the points above and you will get better answers..