RE: Is there a way to hide the share button in a model driven form?
You can hide directly from the ribbon using hide action.
You can also use customizations like JS which will be used to hide button as per your requirement.
Else you can remove share permission for the record.
Thank you,
Amit Katariya