I've got the same issues with double tap. It working totally randomly and I didn't find the way to fix it.
My Redmi is 7A/2G/32G.
I've wrote to Xiaomi support but not any response yet.
I've looked over internet to look of answer but most of them are related to proximity sensor which should be...