Dear Andrej Tekel,
I am sorry that you are finding difficulties with the Funnel.
The solution changes depending if this happen at the beginning of the simulation or after some steps.
If it is at the beginning, please check the str.pdb file. Are there only target atoms (protein only)? Are the atom serials renumbered?
If you used VMD and you choose only a selection of atoms it is possible that serials are different from the ones in your simulation. In this case, the alignment inside FUNNEL_PS will misplace the funnel and the ligand will appear outside from the grid of BIAS.
As for exiting the grid after some steps, the only solution is WRAP AROUND or WHOLEMOLECULES (also having ligand atoms in str.pdb can create problems).
The "combo" with NOPBC on FUNNEL_PS is generally suggested if you provide a customised selection of atoms on WHOLEMOLECULES. The order would be the following: <all atoms in str.pdb>,140,1569-1607. This holds true only if ANCHOR has been defined as the closest target atom with respect to the ligand position (otherwise it will not help). This should work fine if your target is globular, otherwise an ad hoc declaration might be necessary for elongated molecules and oligomeric proteins.
Hope it helps.
Other possible solutions would require to observe the values of CVs, walls, etc. before the crash. In case you need further help you can contact me via PM. I have experience in debugging Funnel-related systems.
Best regards,
Stefano Raniolo