abhi_barad134 if you'll move your phone sideways, left or right while being on a table, it will not lit up but if you do any movement which makes your phone's sensors think that you moved it towards your face, then AOD will lit up again. Try this, keep your phone on a flat surface and move it sideways after AOD goes off, if it still lits up then it may be sensor issue, if not then your phone is perfectly fine.
I hope you found it helpful 😉