I've purchased 8 Macs going right back to 1999. Some like my 2018 i7 mini, and the new M2 mini Pro have so far been flawless from day one and never given problems, while others like a 2009 Mac Pro and a 2017 MacBook Pro had major issues within the first month. They were repaired more than once, but never right, and eventually replaced under warranty.
In the case of the MacBook Pro, the logic board went within the first month and was replaced. Over the next few months practically everything imaginable went wrong with that machine and I eventually forced Apple to get it replaced, though it took far more effort than should have been required.
The first time your logic board failed, you maybe have to give Apple a chance to fix it, but with the second time I would be demanding a replacement without hesitation, given that you cannot rely on it. The simple fact you are posting here suggests the repair times have placed an unreasonable interference on your usage
and enjoyment of the computer.
If you find anything that doesn't work as expected from now on, push for a new computer with no ifs or buts. In both cases mentioned above, the replacement computers were perfect. Sometimes they come out of the factory wrong and no amount of repairs will fix them. We used to call them lemon products.