LPS-46330 Automatically fix illegal buffer size when auto flush is on.
LPS-46330 Unit test