@Harini Dhanapal I manages to solve this from the UI Builder. In the contextual sidebar component of record page I have deactivated the attachment port. It worked.

View solution in original post