Hey Farjad,
I had nearly an identical problem that you’re describing. It turned out that I had reversed the line and load when wiring the switch. I also had some light flickering.
Maybe double check if that’s your issue? My problems cleared up instantly when I flipped the wiring.