This can happen if you have a low-end device (less than 4GB RAM). Delete hw_acceleration first. If no improvement, revert all changes.
If you want a alternative first: Enable Developer Options → set all three animation scales to 0.5x → enable Force GPU rendering → disable HW overlays (toggle off). That alone fixes 80% of UI lag without editing the database. setedit lag fix verified