If you are having problems running wireguard on your raspberry pi check repo you installed it from, if its unstable repo switch to buster backports and reinstall from there. Wireguard from unstable repo has problems with raspberry kernel headers.
Correct repo: https://backports.debian.org/Instructions/