Hey @Sukumar Singh ,
I can see that you're consuming a Lib module directly. Is there some specific reason for that? Also, does this entity come from an API?
To avoid this kind of problem, you should create your foundation modules as services and not as libraries. Service modules are used to consume/expose REST APIs and normalize the data coming from the APIs to ease the maintenance and re-usability of that data.
Also, you should add your own public structures, to expose the data after normalizing it.
If you read this documentation, you can see that "Static Entities can be created and referenced in Libraries but cannot be used in queries, as dropdown sources or as foreign keys for entities. However, you cannot reference Static Entities from (System) in Libraries."
If needed, you can expose the entity data using a query inside a server action, but it's not ideal.
Hope this helps!