This FTBFS was caused by rapidjson [1] and fixed-in-upstream. [2]
It seems that upstream will not ship new one, so need to wait patched version of rapidjson. [1] rapidjson: FTBFS with GCC-14 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075575 [2] https://github.com/Tencent/rapidjson/pull/719/files