Modeling spectral lags in active galactic nucleus flares in the context of Lorentz invariance violation searches