http请求过多,AspNetCore报错。Connection id "0HMH55FMTHGE8", Request id "0HMH55F

问题遇到的现象和发生背景

http请求比较多,过段时间就会报错。Connection id "0HMH55FMTHGE8", Request id "0HMH55FMTHGE8:00000003": An unhandled exception was thrown by the application.

问题相关代码,请勿粘贴截图

Connection id "0HMH55FMTHGE8", Request id "0HMH55FMTHGE8:00000003": An unhandled exception was thrown by the application.

运行结果及报错内容

2022-04-23 22:03:16.908 +08:00 [ERR Microsoft.AspNetCore.Server.Kestrel] Connection id "0HMH567KCLMN8", Request id "0HMH567KCLMN8:00000002": An unhandled exception was thrown by the application.
Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Unexpected end of request content.
at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelBadHttpRequestException.Throw(RequestRejectionReason reason)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Http1ContentLengthMessageBody.ReadAsyncInternal(CancellationToken cancellationToken)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpRequestStream.ReadAsyncInternal(Memory1 destination, CancellationToken cancellationToken) at Microsoft.AspNetCore.WebUtilities.FileBufferingReadStream.ReadAsync(Memory1 buffer, CancellationToken cancellationToken)
at System.IO.StreamReader.ReadBufferAsync(CancellationToken cancellationToken)
at System.IO.StreamReader.ReadToEndAsyncInternal()
at EOSAPI.Util.Extention.ReadToStringAsync(Stream stream, Encoding encoding)
at EOSAPI.Api.RequestBodyMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)

我的解答思路和尝试过的方法
我想要达到的结果