After messing around with pfSense, I found that after restoring a config backup, FreeRADIUS package would not reinstall, while other packages would.
This link solved my problem, it might be helpful to others to find the same issue:
https://docs.netgate.com/pfsense/en/latest/troubleshooting/pkg-broken-database.html