What's your chainline distance now? The FC-TY501 requires a D-NL (122mm) bottom bracket for a 47.5 mm chainline and a D-EL (127mm) for a 50mm chainline.
I suspect you'll need a new bottom bracket of the correct length as well.
This seems to suggest your existing crank uses a 113mm BB
https://www.mtbr.com/threads/need-he...h-pics.636487/
https://bike.shimano.com/en-EU/produ.../FC-TY501.html
https://productinfo.shimano.com/#/sp...ttom%20Bracket