ERROR: Group command requires atom attribute molecule (src/group.cpp:207)

You cannot. Groups are not suitable for the kind of analysis you want to do. Instead you can use the fix reaxff/species command — LAMMPS documentation