I had the same issue with my 10xs max. The only thing apple could tell me is I needed to pay to repair or replace. After deciding I wouldn’t invest another dime in such faulty products. I went a month without my device. I read and tried the tenorshare reiboot software mentioned in this forum and it rebooted my phone out of recovery mode for free. This malfunction didn’t start until the iOS software update. Please try that before you pay apple they don’t stand by their products or software.