Your pads are so worn that the fluid level is now low in the master because the caliper pistons have to push out further, that is why the light was on. The noise could have just been the brake pad squealer that touches the rotor and makes noise when the pads get low. Grinding noise is probably a pad is gone, most likely inboard pad. Dont drive it as you now may have air in the master.