Level streaming, how to prevent AI from falling

years have passed and this problem has not been solved. Can someone tell me how to prevent the AI generated by the level flow and some physical simulation objects from falling when unloading the level?