Adding Additional Properties in Error logs

Hi team,
We are using @elastic/apm-rum in a Nextjs application for Real User Monitoring.
On Deploying and checking the error logs we are seeing some unkown Error culprits(inline script) being identified as shown in the image below.

  • It would be helpful if anyone from the team can throw some light on what is this (inline script).
  • One more question, how can we pass additional properties to be shown in this error block, so that its easier to debug source of logs, such as request urls for http errors, or any method name causing the errors.

Thank you