To replace the bolt you need to take it out. Can you do it? Do you need to straighten it out, at least partially, before progressing? By eye it looks like M6.
yes, I can take it out. It’s bent at the connection point to the rack, so it unscrews just fine. After removing not sure if I can straighten it without damaging the thread.