Tampa Bay Buccaneers safety Cody Grimm, fighting for a spot on the roster after two injury-riddled seasons, hasn’t helped his cause in the past few months.

Grimm, 26, was arrested on a misdemeanor charge of swearing/public intoxication early Sunday morning at a Leesburg, Va., hotel. Grimm, the son of Hall of Fame guard Russ Grimm, also was arrested on the same charge March 10 in another Virginia town.

“I have to learn from my mistakes,’’ Grimm said Wednesday during the team’s offseason practices. “I can’t change anything in the past, but I have to learn and move forward. It was an error in judgment, clearly.’’

Grimm started nine games as a rookie in 2010, but landed on injured reserve each of the past two seasons. He faces competition from Ahmad Black and Keith Tandy in an effort to stick as a reserve safety behind Dashon Goldson and Mark Barron.

“I have spoken to (Grimm) a few times,’’ Bucs coach Greg Schiano said. “I’m disappointed and we’re still in the process of gathering. As an organization, we’ll do what we think is appropriate.’’