Hello,
This can be related to spinal compression due to a disc or lumbar canal stenosis- which affects walking distance,
You need to do investigations like xrays and mri,
Treatment involves medicines and physiotherapy
Next Steps
Consult online or visit an orthopedic doctor