Sometimes CIs cause problems like this with some tests. Usually restarting the same run fixes the issue so this may be a problem with Cirrus CI or the script used to run it.
There is a similar PR that argues the same:
https://github.com/spesmilo/electrum/pull/7609Other than that, you have to debug electrum/tests/regtest.py and see where are things going wrong.