Beaglebone AI 64 showing 2GB of RAM in htop

Yes, the rest of the memory if allocated to the co-processors.
there is an alternative dtb file that disables the shared memory

see this post