Call to a member function supportsInheritance() on null

Whenever I click on search button on Many to one relation type field to select object from list

I get error “Call to a member function supportsInheritance() on null”. Please check image below.

I already have lists to select by searching and it was working today. I have created fields inside bricks and using bricks inside classes. Any solution will be appreciated. My pimcore version is 6.6. Thanks in advance