Buster Posey breaks out for 4 hits in Giants’ win, Sandoval injured