I have a brand new iPhone 17 (started using it in June, so going on 4 months now), iOS version 26.3 (haven't updated yet).
I first noticed this glitch around a month in (which is ridiculous, it's a new phone) but it only happened once or twice a month and now it's been happening increasingly often, already had it happen at least 4 times this month, multiple times per day. What happens is the lockscreen starts popping up nonstop while I am scrolling or even while I am actively typing a message. Usually the lockscreen that pops up is frozen, sometimes the screen even goes black. For example, I would be typing a sentence on a messaging app and the phone would lock mid-typing, I would unlock it, then it would lock again after 2 seconds, the lockscreen would sometimes be frozen (nowhere to type in the pin), and it would repeat even up to 10 times. Closing all the apps and waiting a bit used to help, but it seems to be happening more and more often.
This happens even when the phone is fully charged, definitely not overheated, plenty of storage space (200+gb free), while using the simplest apps (for example, whatsapp or instagram).
Is this a common thing with iPhone 17? Would updating iOS help or is the phone defective? Any help would be appreciated.