Opened the project in UE5.4.4 also gives the same error but packaging and build works with no errors. Interfaces, though not visible in the respective bluprints work without a problem and can be added to new blueprints and used without any problem. Just reporting back for anyone who is interested.