Seems like a motherboard/processor issue has been exposed from the latest security patch update from Samsung itself. It will get fixed by the next update.
Yes ,Samsung has said that all M series smartphones released since 2019 will get 3 android updates and 4 years of security updatesIf you find this helpful click on three dots and accept as solution..