javax.net.ssl.SSLException: Connection reset

I am using Okta API with Java Spring Boot and Angular. Sometimes after several logging in’s I keep getting the following error: Something went wrong: I/O error on POST request for “https://…/api/v1/authn”: Connection reset; nested exception is javax.net.ssl.SSLException: Connection reset. Any idea why this might happen ? Sometimes also happens with logout.

I haven’t seen this issue and I use Angular with Spring Boot almost weekly. Do you have a flaky internet connection?