Using this tool : YMAP & YBN Mover - GTA5-Mods.com you will be able to load and re-export the .ybn
file. Simply add it and then click “Start” on the bottom left. Unfortunately you can’t fix .ydr
using this.
EDIT : an update was made to let you fix .ydr
files.