IIRC modern Apple devices integrate the memory into the whole SoC instead of making it separate on the board and replaceable. It's definitely not swappable like a DIMM or CAMM module would be. Can't find a photo of a decapped M4 chip to prove it, though...
Its not integrated to the SoC, it is soldered to the mainboard though.
Check my sibling comment for a photo link (M1); or here:
https://macmagazine.com.br/wp-content/uploads/2020/11/18-tea...