Magnetic collapse near zero points of the magnetic field