You will need to look under the hood with unbound to see why this specific query has failed. In your unbound configuration file that you installed using the Pi-hole unbound guide, change the verbosity to 5. Restart unbound, repeat the query, then look at the details in the unbound log.
Don't forget to reduce the verbosity at the end of troubleshooting, or the unbound log will grow quite quickly.