ocserv fails to start - ocserv[]: main: main.c:1286: error in command from sec-mod

Remote telemetry shows an instance of ocserv getting stuck after hitting an error.

2020-09-25 15:20:00.9801308	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9801471	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9801508	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9801746	 ocserv[1]: main: main.c:1286: error in command from sec-mod
2020-09-25 15:20:00.9801785	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9801941	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9801977	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9802230	 ocserv[1]: main: main.c:1286: error in command from sec-mod
2020-09-25 15:20:00.9802269	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9802473	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9802511	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9802674	 ocserv[1]: main: main.c:1286: error in command from sec-mod
2020-09-25 15:20:00.9802710	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9802874	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9802911	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9803170	 ocserv[1]: main: main.c:1286: error in command from sec-mod
2020-09-25 15:20:00.9803210	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9803427	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9803466	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9803562	 ocserv[1]: main: main.c:1286: error in command from sec-mod
2020-09-25 15:20:00.9803594	 ocserv[1]: main: termination request received; stopping new connections
2020-09-25 15:20:00.9803842	 ocserv[1]: main: termination request received; waiting 15000 ms
2020-09-25 15:20:00.9803947	 ocserv[1]: main: main-sec-mod-cmd.c:108: command socket for sec-mod closed
2020-09-25 15:20:00.9804035	 ocserv[1]: main: main.c:1286: error in command from sec-mod