I have faced such error message as well, and what I found out is that I have multiple GDS32.DLL located in my computer. I think somehow during my uninstallation of previous version of FireBird, it didn't get removed.
After I remove all outdated GDS32.DLL like those dated in year 2007, and remain the latest one, my system does not prompt such error already but prompting more meaningful messages.