I found the culprit for me: (using Android OS 11, Samsung Galaxy A40)
Settings -> Advanced features -> Motions and gestures
TURN OFF 'Double tap to turn screen on'. (On by default!!!!!!!!!!!!!!!!)
This has been bugging me for ages and thinking it had to do with lock screen or side...