I have found solution here https://github-wiki-see.page/m/FlaUI/FlaUI/wiki/Common-Issues
So my problem occured because I am using DevExpress controls, so all I had to do was to disable this static property:
ClearAutomationEventsHelper.IsEnabled = false;
I am leaving the comment here if someone else has similar problem.