UiPath stops identifying the Form elements inWPF UI

We are working on a POC for automating a WPF application. We are using UiPath Studio Pro 2020.4.1.

The issue we are facing is that after working with UIPath for a few hours it stops identifying the form elements in the WPF UI. It would work fine for a few hours but after that it would only identify the full page of form as one element and stop identifying individual elements.

It starts working again after clearing the temp directory and restarting the system.

Could you please let me know if anyone has faced this issue? Also is there a solution for this.