Lxc exec results in "Error: Failed to retrieve PID of executing child process"

If you’re running the snap package it could well be related to one of these: