Pritunl on mac os WireGuard error

I encountered the following error message when using Pritunl WireGuard on Mac OS. I have tried various methods, including uninstalling and reinstalling, but the issue persists. The same configuration file works on another Mac OS machine without any problems.

[2023-06-03 02:20:42][INFO] ▶ profile: Connecting ◆ device_auth=false ◆ disable_gateway=false ◆ dynamic_firewall=false ◆ force_dns=false ◆ mode="wg" ◆ profile_id="d81a20b880d1d8e0" ◆ reconnect=true ◆ sso_auth=false
[2023-06-03 02:20:45][ERRO] ▶ utils: Process exec error ◆ arg=[]string{"/usr/local/bin/wg-quick", "up", "pritunl0"} ◆ cmd="/opt/homebrew/bin/bash" ◆ output="[#] wireguard-go utun\n[+] Interface for pritunl0 is utun8\n[#] wg setconf utun8 /dev/fd/63\n[#] ifconfig utun8 inet 192.168.221.18/24 192.168.221.18 alias\n[#] ifconfig utun8 up\n[#] route -q -n add -inet 192.168.231.0/24 -interface utun8\n[#] route -q -n add -inet 192.168.221.0/24 -interface utun8\n[#] route -q -n add -inet 0.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 128.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 1.1.1.1 -gateway 192.168.10.254\n[#] networksetup -getdnsservers Ethernet\n[#] networksetup -getsearchdomains Ethernet\n[#] networksetup -getdnsservers Wi-Fi\n[#] networksetup -getsearchdomains Wi-Fi\n[#] networksetup -getdnsservers Thunderbolt Bridge\n[#] networksetup -getsearchdomains Thunderbolt Bridge\n[#] networksetup -getdnsservers iPhone USB\n[#] networksetup -getsearchdomains iPhone USB\n[#] networksetup -getdnsservers Outline\n[#] networksetup -getsearchdomains Outline\n[#] networksetup -getdnsservers impracticalEB49\n[#] networksetup -getsearchdomains impracticalEB49\n[#] networksetup -getdnsservers insignifica8EB2\n[#] rm -f /var/run/wireguard/utun8.sock\n[#] rm -f /var/run/wireguard/pritunl0.name\n[#] route -q -n delete -inet 1.1.1.1\n"
utils: Failed to exec '/opt/homebrew/bin/bash'
exit status 4
ORIGINAL STACK TRACE:
github.com/pritunl/pritunl-client-electron/service/utils.ExecCombinedOutputLogged
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/utils/proc.go:368 +0x104bf0bdb
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWgMac
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3459 +0x104cbc7ab
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3550 +0x104cbcc03
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).startWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:4019 +0x104cbede7
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).Start
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:1291 +0x104cb1413
github.com/pritunl/pritunl-client-electron/service/handlers.profilePost.func1
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/handlers/profile.go:103 +0x104cc7a1f
runtime.goexit
	/opt/homebrew/Cellar/go/1.20.1/libexec/src/runtime/asm_arm64.s:1172 +0x1047d07a3
[2023-06-03 02:20:46][ERRO] ▶ utils: Process exec error ◆ arg=[]string{"/usr/local/bin/wg-quick", "up", "pritunl0"} ◆ cmd="/opt/homebrew/bin/bash" ◆ output="[#] wireguard-go utun\n[+] Interface for pritunl0 is utun8\n[#] wg setconf utun8 /dev/fd/63\n[#] ifconfig utun8 inet 192.168.221.18/24 192.168.221.18 alias\n[#] ifconfig utun8 up\n[#] route -q -n add -inet 192.168.231.0/24 -interface utun8\n[#] route -q -n add -inet 192.168.221.0/24 -interface utun8\n[#] route -q -n add -inet 0.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 128.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 1.1.1.1 -gateway 192.168.10.254\n[#] networksetup -getdnsservers Ethernet\n[#] networksetup -getsearchdomains Ethernet\n[#] networksetup -getdnsservers Wi-Fi\n[#] networksetup -getsearchdomains Wi-Fi\n[#] networksetup -getdnsservers Thunderbolt Bridge\n[#] networksetup -getsearchdomains Thunderbolt Bridge\n[#] networksetup -getdnsservers iPhone USB\n[#] networksetup -getsearchdomains iPhone USB\n[#] networksetup -getdnsservers Outline\n[#] networksetup -getsearchdomains Outline\n[#] networksetup -getdnsservers impracticalEB49\n[#] networksetup -getsearchdomains impracticalEB49\n[#] networksetup -getdnsservers insignifica8EB2\n[#] rm -f /var/run/wireguard/utun8.sock\n[#] rm -f /var/run/wireguard/pritunl0.name\n[#] route -q -n delete -inet 1.1.1.1\n"
utils: Failed to exec '/opt/homebrew/bin/bash'
exit status 4
ORIGINAL STACK TRACE:
github.com/pritunl/pritunl-client-electron/service/utils.ExecCombinedOutputLogged
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/utils/proc.go:368 +0x104bf0bdb
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWgMac
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3459 +0x104cbc7ab
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3550 +0x104cbcc03
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).startWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:4019 +0x104cbede7
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).Start
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:1291 +0x104cb1413
github.com/pritunl/pritunl-client-electron/service/handlers.profilePost.func1
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/handlers/profile.go:103 +0x104cc7a1f
runtime.goexit
	/opt/homebrew/Cellar/go/1.20.1/libexec/src/runtime/asm_arm64.s:1172 +0x1047d07a3
[2023-06-03 02:20:47][ERRO] ▶ utils: Process exec error ◆ arg=[]string{"/usr/local/bin/wg-quick", "up", "pritunl0"} ◆ cmd="/opt/homebrew/bin/bash" ◆ output="[#] wireguard-go utun\n[+] Interface for pritunl0 is utun8\n[#] wg setconf utun8 /dev/fd/63\n[#] ifconfig utun8 inet 192.168.221.18/24 192.168.221.18 alias\n[#] ifconfig utun8 up\n[#] route -q -n add -inet 192.168.231.0/24 -interface utun8\n[#] route -q -n add -inet 192.168.221.0/24 -interface utun8\n[#] route -q -n add -inet 0.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 128.0.0.0/1 -interface utun8\n[#] route -q -n add -inet 1.1.1.1 -gateway 192.168.10.254\n[#] networksetup -getdnsservers Ethernet\n[#] networksetup -getsearchdomains Ethernet\n[#] networksetup -getdnsservers Wi-Fi\n[#] networksetup -getsearchdomains Wi-Fi\n[#] networksetup -getdnsservers Thunderbolt Bridge\n[#] networksetup -getsearchdomains Thunderbolt Bridge\n[#] networksetup -getdnsservers iPhone USB\n[#] networksetup -getsearchdomains iPhone USB\n[#] networksetup -getdnsservers Outline\n[#] networksetup -getsearchdomains Outline\n[#] networksetup -getdnsservers impracticalEB49\n[#] networksetup -getsearchdomains impracticalEB49\n[#] networksetup -getdnsservers insignifica8EB2\n[#] rm -f /var/run/wireguard/utun8.sock\n[#] rm -f /var/run/wireguard/pritunl0.name\n[#] route -q -n delete -inet 1.1.1.1\n"
utils: Failed to exec '/opt/homebrew/bin/bash'
exit status 4
ORIGINAL STACK TRACE:
github.com/pritunl/pritunl-client-electron/service/utils.ExecCombinedOutputLogged
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/utils/proc.go:368 +0x104bf0bdb
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWgMac
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3459 +0x104cbc7ab
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3550 +0x104cbcc03
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).startWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:4019 +0x104cbede7
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).Start
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:1291 +0x104cb1413
github.com/pritunl/pritunl-client-electron/service/handlers.profilePost.func1
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/handlers/profile.go:103 +0x104cc7a1f
runtime.goexit
	/opt/homebrew/Cellar/go/1.20.1/libexec/src/runtime/asm_arm64.s:1172 +0x1047d07a3
[2023-06-03 02:20:47][ERRO] ▶ profile: Failed to configure wg
utils: Failed to exec '/opt/homebrew/bin/bash'
exit status 4
ORIGINAL STACK TRACE:
github.com/pritunl/pritunl-client-electron/service/utils.ExecCombinedOutputLogged
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/utils/proc.go:368 +0x104bf0bdb
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWgMac
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3459 +0x104cbc7ab
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).confWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:3550 +0x104cbcc03
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).startWg
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:4019 +0x104cbede7
github.com/pritunl/pritunl-client-electron/service/profile.(*Profile).Start
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/profile/profile.go:1291 +0x104cb1413
github.com/pritunl/pritunl-client-electron/service/handlers.profilePost.func1
	/Users/apple/go/src/github.com/pritunl/pritunl-client-electron/service/handlers/profile.go:103 +0x104cc7a1f
runtime.goexit
	/opt/homebrew/Cellar/go/1.20.1/libexec/src/runtime/asm_arm64.s:1172 +0x1047d07a3