Changes not Persisted - jffs2 issue - Support for UAP-LR V2

So i was trying to add device support for the UAP LR V2 and I was successful in booting it up and installing it too. (Despite Ubiquiti disabling flashing on 4.X, I was able to downgrade to 3.X and bricked my device but that allowed me to flash my own openwrt build on it)

The issue is mainly with the changes not persisting and it's mostly to do with these errors I think (not really errors but logs):

[   78.439816] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   78.446836] jffs2_build_filesystem(): unlocking the mtd device...
[   78.457297] done.
[   78.465540] jffs2_build_filesystem(): erasing all blocks after the end marker...
[   79.277053] jffs2: Newly-erased block contained word 0x461a6cdd at offset 0x001c0000
[   79.319797] jffs2: Newly-erased block contained word 0x8af0ce84 at offset 0x001b0000
[   79.340110] jffs2: Newly-erased block contained word 0x5826882b at offset 0x001a0000
[   79.360128] jffs2: Newly-erased block contained word 0xdeef3228 at offset 0x00190000
[   79.380103] jffs2: Newly-erased block contained word 0xc3dc8b0a at offset 0x00180000
[   79.400108] jffs2: Newly-erased block contained word 0xa4480ac5 at offset 0x00170000
[   79.420120] jffs2: Newly-erased block contained word 0x9cc700be at offset 0x00160000
[   79.440080] jffs2: Newly-erased block contained word 0x817ed557 at offset 0x00150000
[   79.467277] jffs2: Newly-erased block contained word 0x989972c7 at offset 0x00140000
[   79.487277] jffs2: Newly-erased block contained word 0xda215671 at offset 0x00130000
[   79.509773] jffs2: Newly-erased block contained word 0xd4d903e at offset 0x00120000
[   79.530089] jffs2: Newly-erased block contained word 0x3c632b18 at offset 0x00110000
[   79.550123] jffs2: Newly-erased block contained word 0x47300391 at offset 0x00100000
[   79.570130] jffs2: Newly-erased block contained word 0x5b3fef1f at offset 0x000f0000
[   79.590155] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x000e0000
[   79.610107] jffs2: Newly-erased block contained word 0xc6beeddb at offset 0x000d0000
[   79.637319] jffs2: Newly-erased block contained word 0xe5e34c36 at offset 0x000c0000
[   79.657285] jffs2: Newly-erased block contained word 0x93a7833 at offset 0x000b0000
[   79.679780] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x000a0000
[   79.700113] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x00090000
[   79.720109] jffs2: Newly-erased block contained word 0xf64418ac at offset 0x00080000
[   79.740115] jffs2: Newly-erased block contained word 0x7d9b902 at offset 0x00070000
[   79.760113] jffs2: Newly-erased block contained word 0xc396f9e4 at offset 0x00060000
[   79.780141] jffs2: Newly-erased block contained word 0xd5d6ce85 at offset 0x00050000
[   79.800123] jffs2: Newly-erased block contained word 0xe00f8db7 at offset 0x00040000
[   79.827295] jffs2: Newly-erased block contained word 0x455a56ed at offset 0x00030000
[   79.847284] jffs2: Newly-erased block contained word 0x34d3f41a at offset 0x00020000
[   79.869781] jffs2: Newly-erased block contained word 0xb51e503 at offset 0x00010000
[   79.890137] jffs2: Newly-erased block contained word 0xdeadc0de at offset 0x00000000
[   79.907608] done.
[   79.909601] jffs2: notice: (1216) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[   80.092877] overlayfs: upper fs does not support tmpfile.

So can any of you guys help me with this? I researched a bit and it seems like this is recurring issue on ubnt devices but I have tried multiple branches with no luck (22, 23, snapshot)

Sync trees or reduce flash frequency, post ubus call system board output

There was a bug causing Ubiquity devices to forget the config. I think the fix is in 23.05.4, and onward.