MetaTrader was built for Windows and remains a Windows program at heart. Mac users have several routes to it, and the right one for running an EA unattended is not on the Mac at all.
The options
MetaQuotes publishes a native macOS version of MetaTrader 5, which installs like any Mac application, connects to a broker and supports charts, trading and, in recent builds, MQL5 programs. Whether a particular EA runs correctly on it should be confirmed with the developer, since some features and some third-party code assume Windows. Some brokers offer their own Mac package, typically a Windows build wrapped in a compatibility layer, which works but is heavier and less stable. A Windows virtual machine, through Parallels or similar, runs the full Windows version with no compromise and at the cost of a Windows licence and the virtualisation software.
Why none of them is the answer
An EA needs to run continuously, and a laptop that sleeps, travels or restarts does not provide that on any operating system. The VPS page covers why. A Windows VPS runs the standard MetaTrader 5 build, the one every EA was developed on, and the Mac is used only to connect to it through Remote Desktop, which is a free app on the Mac App Store. The Mac's own platform then matters only for looking at charts.
A Mac user installs the native MetaTrader 5 and attaches an EA. It runs for a week until the laptop is closed for a weekend trip. On Monday the EA has missed two signals and one position was managed by its server-side stop alone. The user rents a Windows VPS, installs the standard platform, moves the EA and its settings across, and connects from the Mac by Remote Desktop. The Mac's MetaTrader stays installed for reading the record.
Run the EA on a Windows VPS and use the Mac to watch it. If the native Mac version is used at all, confirm the EA's compatibility with the developer and treat it as a monitoring terminal, not a trading one. The investor password for a verification service, the settings file, and the trade history all move between platforms without change.