As others have said it is madness to contemplate modifying the M4 mini.
What you can do is buy a 1 TB Crucial NVMe for £60 and a Thunderbolt enclosure for £70 - £100.
You then have 2 options.
You can use the Thunderbolt drive as a normal external drive or you can install Sequoia on it and use it as the boot drive.
I use the second alternative as it preserves your tiny internal drive and all the wear and tear takes place on the external.
Although I now have a Thunderbolt drive doing this, for the past year I was using a cheap £7 USB 3.0 enclosure to run my M2 mini and surprisingly it was just as fast as using the internal.
So why did I move onto the Thunderbolt? Just to see what I was missing in performance and the answer is, "Very little!"
Doing what I suggest is extremely simple, quite cheap (compared with Apple's £400 for 1 TB) and does not invalidate your warranty when you destroy your computer!