For now, downgrading react to 18.2.0 managed to fix this problem temporarily.
"react": "18.2.0", "react-dom": "18.2.0"