Detection of sub-nanotesla magnetic fields by linewidth narrowing in high-density nitrogen vacancy magnetometry with pulsed ESR method