Special sized towel rack brackets needed - do they exist?
Purchase a towel bar to your liking that has the bar as a separate piece, longer than the spacing you need. Cut the bar to the length you need and install.

I have had to cut the bar on occasion when the space was too small for the bar on the wall, so I made it shorter.The same idea should work for you.