Erorr in energy minimization

You still have the same underlying problem. You need to stop and fix the topology issue before trying to do anything. A fractional charge indicates a severe problem. Start by looking at your ligand.

You have a misformatted coordinate file.

Here, the problem is your coordinate file is out of order with respect to the topology. The contents of [molecules] must be in the same order as the coordinate file.