Matteo Berrettini said he is "tired of retiring" from matches as injury ended his hopes of a maiden Grand Slam title at the French Open.