Script not getting executed because of Nightly Browser got stuck

I’m trying to execute the test on the Firefox browser with headless=false, but the browser pop-up appears and gets stuck.

The same script is getting executed successfully when hedless=true.

can anyone suggest how to resolve this?