Enhanced metrology at the critical point of a many-body Rydberg atomic system