You have to amend your 2023 tax return to include the capital loss carryover from 2022. Then you can use the amended 2023 return to calculate the correct capital loss carryover to 2024.
You can file your 2024 tax return before the 2023 amended return has been processed, or even before you have filed it. But you have to prepare the 2023 amended return in order to have the correct figures to calculate the carryover to 2024.