It is a known software issue with the 12 series phones. Apple is working on a fix and will rectify the problem so you just need to be patient. The iPhone 11 Pro's had the same problem and Apple fixed them with a software update (not sure which version of iOS13)..