Both 0xc0000374 and 0xc0000005 are indicating native memory issues (heap corruption and access violation). To debug further, a professional needs to take a look at the dump and likely collect more data.
You might escalate this to a senior developer on your side who knows how to debug native memory issues, or hire an experienced consultant, or open a support case via https://support.microsoft.com An online forum cannot help much due to the restraints.
BTW, .NET Core 2.1 went end of life a long while ago, so your web app should be migrated to at least .NET 6. This might not resolve the native memory issues, but is required if you want Microsoft support to assist. They cannot help you with deprecated technologies.