Application in production AWS

I have a problem in production every time I restart my application every so often it stops working, the only error that throws me is this:

HTTP parse error, malformed request (): #<Puma::HttpParserError: Invalid HTTP format, parsing fails.>