I guess it depends how cramped your garage is! More likely to give your bike a shove if you are working near it.I have had them hanging like that for 30 years, there used to be more, guess I am careful not to back into them. They take quite a shove to get them to move, it may be down to the position of the hook.
I wonder if you mounted it on a slight wedge, if you could regain some space.I mounted my hook on a bit of wood to save the tyres marking the wall .
View attachment 391909
Presumably similar quality:I use these https://www.amazon.co.uk/Bicycle-Bike-Wall-Mount-Hook/dp/B00W4Y6STW
2 for less than £8
View attachment 316880
Just a word of warning when mounting these type of brackets....Presumably similar quality:
£2+p&p a pop hehttps://www.planetx.co.uk/i/q/TOTERBSR/jobsworth-steel-wall-mounted-bike-hanger-(fixed-hook) so 4 for £12 delivered.