Sounds like an internal error since PBP is supposed to take care of bank switching.
I wonder if you have exceeded the number of variables available to you.