When sending the invite to share folder and files to external users the edit permissions should have the option to disable the external users from deleting or renaming the file.
Have tried to apply custom permission level but still does not apply to the external user group as they are automatically under the system limited access hidden group created by Sharepoint as default when sharing links to specific people.