had the same problem with Codeigniter on Ubuntu server.
I solved this way.
I removed Spreadsheet with Composer.
I cleared the cache with Composer.
I deleted all the vendor folder.
I installed Spreadsheet with composer.
I uploaded all new vendor folder.
it worked.
Php 8.2 CI 4.3.5
The tables work on the development place. I have tried with new composer.
The last update showed me the error codes instead of the 500 I was getting - so some progress.
Now I found this from https://github.com/PHPOffice/PhpSpreadsheet/issues/3615#issuecomment-1595846986
more clue in https://github.com/PHPOffice/PhpSpreadsheet/issues/3758
It is to do with
So something to try!