The problem is that LineSearches does not support NaNMath@1, and something in your environment requires NaNMath@1.
LineSearches
NaNMath@1