org.openqa.selenium.WebDriverException: Reached error page: about:neterror

I have a script that works perfect in Chrome, but when running it in Firefox it fails, the exception is:

2022-05-25 11:30:30.235 DEBUG testcase.BorDrilling - 15: verifyElementVisible(findTestObject(“Object Repository/Page_Docmap Documents/div_Yes”))
2022-05-25 11:30:30.837 DEBUG testcase.BorDrilling - 16: click(findTestObject(“Object Repository/Page_Docmap Documents/div_Yes”))
1653471032133 Marionette WARN Ignoring event ‘pageshow’ because document has an invalid readyState of ‘uninitialized’.
2022-05-25 11:30:32.240 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to click on object ‘Object Repository/Page_Docmap Documents/div_Yes’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/Page_Docmap Documents/div_Yes’
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:74)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:620)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at BorDrilling.run(BorDrilling:113)
at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:445)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:436)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:415)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:407)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:284)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)
at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)
at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
at TempTestCase1653471011824.run(TempTestCase1653471011824.groovy:25)
Caused by: org.openqa.selenium.WebDriverException: Reached error page: about:neterror?e=xfoBlocked&u=https%3A//login.microsoftonline.com/31ebe7bb-76d1-4291-a072-40618335a20b/saml2%3FSAMLRequest%3DjVLBbuIwFPwVy%252FckjkMgWISKFlWL1FURSffQm%252BM8wFVis34O2s9fbwC1vaA9PnvmzXjGi4c%252FfUfO4FBbU9I0ZpSAUbbV5lDSt%252Fo5KujDcoGy7%252FhJrAZ%252FNDv4PQB6EogGxeWmpIMzwkrUKIzsAYVXolr9fBE8ZuLkrLfKdpSsEMH5IPVkDQ49uArcWSt4272U9Oj9CUWSNNa5uLWql6dY2T55DPPa6a4LnpJ%252FeklVvVKyDia0kX40fuN29qBN3GvlLNq9tyaQYNySpdDArGmi2bRNowmfp5FkMx5N2DQtsiyXnDXjdk7Js3UKxseWdC87BEo265LKnH3M1fTI8kIWhw%252BZF4dsr9sJTCdpOA0g3EpEfYZPGuIAG4NeGl9SzjiPWB7xvGZzkTGRhXj47J2S7TWiR20u0d%252FLs7mAUPyo6220fa1qSn7dKgwAei1MjOrua1P3F8tbPXT5%252F2X04GUrvVwkX0WX1%252FH7p1n%252BBQ%253D%253D%26SigAlg%3Dhttp%253A%252F%252Fwww.w3.org%252F2001%252F04%252Fxmldsig-more%2523rsa-sha256%26Signature%3DoQ%252FQAOB2nlFVy6oQE7l%252FQQivTYTbLq3zLGQNmjPM6xWyCSiuWaOVC2EFxHYWcvonimuj9p4EaLjC7BYDrp1nbMqxReb3elTGyiS%252B%252BenVsH8QTMzDDUaRKOT4mmiZxmEhO6set76YAta74jDhscjESgpIbinyt%252FrKCHixBZDFHSWNHPGhQI7vn2uKPb5lLIRFuQXVQwWvMhj5oH58S4QSxw%252BtZHMnJbbXzKDqXD1luAmngy4XK73hnBtdZ9Y6Ne5uw%252FogavYhVoTNJbUdXkf56SpGkB3pbyPbAzELkL6RAPdYW2dsVwl60XuwkTvI0Ug3%252FC76%252B5KcqtCWpW82Bv%252FBLg%253D%253D&s=neterror&c=UTF-8&d=This%20page%20has%20an%20X-Frame-Options%20policy%20that%20prevents%20it%20from%20being%20loaded%20in%20this%20context.
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘W10THEN’, ip: ‘172.25.208.1’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0_282’
Driver info: com.kms.katalon.core.webui.driver.firefox.CGeckoDriver
Capabilities {acceptInsecureCerts: true, browserName: firefox, browserVersion: 100.0.2, javascriptEnabled: true, moz:accessibilityChecks: false, moz:buildID: 20220519220738, moz:geckodriverVersion: 0.29.0, moz:headless: false, moz:processID: 52080, moz:profile: C:\Users\enget\AppData\Loca…, moz:shutdownTimeout: 60000, moz:useNonSpecCompliantPointerOrigin: false, moz:webdriverClick: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, platformVersion: 10.0, proxy: Proxy(direct), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify}
Session ID: f3904499-65de-446a-b724-4ac542cf9e9a
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CFirefoxDriver.execute(CFirefoxDriver.java:27)
at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:285)
at org.openqa.selenium.remote.RemoteWebElement.click(RemoteWebElement.java:84)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.lambda$new$0(EventFiringWebDriver.java:404)
at com.sun.proxy.$Proxy14.click(Unknown Source)
at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringWebElement.click(EventFiringWebDriver.java:417)
at org.openqa.selenium.WebElement$click.call(Unknown Source)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.clickUntilSuccessWithTimeout(ClickKeyword.groovy:81)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.clickUntilSuccessWithTimeout(ClickKeyword.groovy)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.doCall(ClickKeyword.groovy:67)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword$_click_closure1.call(ClickKeyword.groovy)
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.click(ClickKeyword.groovy:74)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:620)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$5.call(Unknown Source)
at Script1653396780764.run(Script1653396780764.groovy:113)
… 11 more
)

The part of the script which fails is:

//verify login
WebUI.delay(1)
//WebUI.verifyElementVisible(findTestObject(‘Object Repository/Page_Docmap Documents/span_Sign out’))
WebUI.click(findTestObject(‘Object Repository/Page_Docmap Documents/span_Sign out’))
WebUI.delay(1)

WebUI.verifyElementVisible(findTestObject('Object Repository/Page_Docmap Documents/div_Yes'))
	
WebUI.click(findTestObject('Object Repository/Page_Docmap Documents/div_Yes'))

WebUI.delay(1)

postData(url, api, service, arrElement.get(step), aggregate, 60, arrQualifier.get(step), missing, breach, unit, timeStart)
WebUI.closeBrowser()


So aparently the script finds the element:
WebUI.verifyElementVisible(findTestObject(‘Object Repository/Page_Docmap Documents/div_Yes’))
but fails hen trying to click it:
WebUI.click(findTestObject(‘Object Repository/Page_Docmap Documents/div_Yes’))

As stated above this works fine in Chrome but fails for Firefox.

Any help would be much appreciated!