I found the solution! It turns out the issue was that the launch options needed to be set in the library.
Here's the working code:
this.jsreport.use(JsReportChromePdf({ launchOptions: { headless: true, args: ["--no-sandbox", "--disable-setuid-sandbox"] } }));Adding launchOptions fixed the problem. Hope this helps anyone facing the same issue! Here the reference Failed to launch the browser process no usable sandbox