I have made 3 reports to apple support about this. Today was the first time they said they could replace my device for $32.77 (Canadian) but had no assurance this wouldn’t happen again. Their direct response:
“There is no known issues with any model iPhones in regards to the issue you are experiencing. If this issue was to arise again then it would be escalated to a senior advisor via phone support and they will be to offer you further options.”
So I declined replacement since I don’t want to potentially pay the fee and get another defective device.
I strongly recommend anyone with this issue to download the Apple Support app/make a Genius Bar appointment and report the issue every time to Apple. The more people that report it, the more likely they may recognize it as a “known issue” and either fix it or replace your phone for free.
These forums are unofficial so it doesn’t help to just post here to complain.
I am on 18.2.1 for the record and it has happened before and after I updated it.
good luck!