The Giants left-hander apparently injured his right foot during a rehab start