If you trust the source where you have downloaded FieldTrip, you can resolve these errors for all MEX-files at once by opening a terminal and typing
sudo xattr -r -d com.apple.quarantine LOCATION_OF_FIELDTRIP
sudo find LOCATION_OF_FIELDTRIP -name \*.mexmaci64 -exec spctl --add {} \;
where LOCATION_OF_FIELDTRIP
is the place where you have unzipped FieldTrip. Following sudo you will have to give your administrator password.
The first command removes all FieldTrip files from quarantine, the second adds a Gatekeeper exception to all MEX-files.
Check the following link for more help:
https://www.fieldtriptoolbox.org/faq/mexmaci64_cannot_be_opened_because_the_developer_cannot_be_verified/