api3 contact.getoptions for custom fields either returns null or an error
This PR https://github.com/civicrm/civicrm-core/pull/31968/files added some legacy handling, but in the case of custom fields it's now passing on an api4-formatted fieldname instead of the api3 "custom_NN" format. Then when it hits the pseudoconstant it doesn't match.
It actually hasn't been working since 5.79-ish, but now since 5.82 with that PR it can introduce an error if it returns false, which api3 thinks is a fail.