I experienced the exact same thing just two weeks ago,except for the gas spilling onto the floor.
I crawled under the car and could hear it coming from the gas tank,and when I removed the gas cap it was quieted instantly.
I don't know why it did this????