Wall-Crossing of TBA Equations and WKB Periods for the Higher Order ODE