This is how to fix it.
1. check your logs, find the last line of config parsing that's before the error, note that it's not the next one, maybe a couple of lines before that.
2. comment that line out and retry.
For example.
[Aug 23, 2023, 18:32:10] 8 [pull] #----------------------------------------here
[Aug 23, 2023, 18:32:12J Raw stats on disconnect:
[Aug 23, 2023, 18:32:12] Performance stats on disconnect:
CPU usage (microseconds): 1431036
Network bytes per CPU second: 0
Tunnel bytes per CPU second: O
[Aug 23, 2023, 18:32:13] OpenPN core 3.8
mac arm64 64-bit built on Jul 26 2023
03:55:50
[Aug 23, 2023, 18:32:13]
Frame=512/2112/512 mssfix-ctri=1250
[Aug 23, 2023, 18:32:13] NOTE: This configuration contains options that were not used: #---------------------- the first line of the issue