The 22-year-old, who can play on either the right of a back three or as a right wing-back, has played 100 times for the Reds - but injuries have stunted much of his career at Oakwell.
The versatile defender had a fine start to 2022, including an outstanding performance in Barnsley’s 3-2 win at home to Middlesbrough.
However, injury hit Williams once again and ended his season prematurely - forcing him to watch on from the stands as the Reds dropped down to the third tier of English football.
“It’s been tough but it’s football and it happens - you’ve just got to try and look at the positives,” Williams told the Chronicle.
“I’ve tried to knuckle down on the mental side and come back physically stronger.
“That’s been my main aim really.
“It’s obviously a sucker punch when I’m doing well but you have to look at the positive because I was doing well.
“Hopefully I can come back and start to do well again.”
He has yet to feature in either of Michael Duff’s first two pre-season friendlies and hopes to be fully fit for the start of the season.
“I’m nearly at the end of recovering from the injury now and it’s just getting back fit and integrating with the team,” he said.
“Then hopefully getting involved in some minutes really.
“My aim is to be fit for the start of the season but with football you never know what can happen.”