The issue is solved.
It seems like this is some kind of a bug with puppeteer-screen-recorder version 2. Simply update to version 3 to fix the issue!
So in package.json
{
...
"dependencies": {
...
"puppeteer-screen-recorder": "^2.1.2" -> "^3.0.6",
},
...
}
fixed it for me.