How to merge several small CKKS ciphertexts into one large CKKS ciphertext

I suggest looking at Oblivious Message Retrieval (last bullet point). The code based on OpenFHE is available here: GitHub - keewoolee/SophOMR: Proof of Concept Implementation of SophOMR