That is so funny, and I didn't think about that at all when I made the pushing system lol. I am not able to fix this at the moment because of ssd failure and losing the most up to date source code, but you can fix your world by editing the .world file.
Go to "%localappdata%\gain_factory_reloaded_\worlds" and open your world in notepad or something (it's all json). You can search (ctrl + f) for the name of the queen bee that got stuck, then within the same struct you can find the variables named "x_" and "y_" and change them to move the queen.