[Firefox] Invalid session id: No active session with ID

I’m running test in chrome and firefox. Everything work fine with chrome. With firefox, an error occured after few cases executed.
[1] Error | Invalid session id: No active session with ID xxxx
invalid session id: No active session with ID xxxx

I have no idea why this error occured. Please help

I’m using firefox 97, codecept 3.0.6.

Config:
firefox : {
startwait:5000,
browser : [
{
browser: ‘firefox’,
windowSize : ‘1000x768’,
outputName () {
return ‘’;
},
},
],
},