If you are just curious about the HV traction battery you can find earlier model ('21-'23) versions for $24-31k.
hyundaipartsdeal.com
The Chevy Bolt battery (64kWh) was retailing for slightly less than that. Recently, a company started offering "refurbished" packs for $8K.
These batteries have multiple modules (collection of battery cells) that can independently be replaced at even lower costs. Generally, it is one or two cells that fail, not the entire pack. So the chances of needing to replace an entire pack may be even lower than the apparent defect rate, which appears to be relatively low.
When packs are replaced under warranty, the old one is likely refurbished and used for subsequent customers with failed battery cells. It is far easier to replace entire packs than to tear into the pack and replace modules, so from a warranty perspective, reducing labor costs is an important consideration. For consumers having to pay for this sort of work out of warranty, the replacement of a module would clearly be less costly.
Currently, there are likely a limited number of dealers equipped to replace packs, let alone even fewer who can replace modules. In the case of the Bolt, a recall requiring nearly 200K cars to get replacement packs forced dealer techs to invest in the equipment and training to do pack replacements, but in a trial weeks before they decided how to proceed with the recall, my local dealer participated in a trial replacing modules. I spoke to the tech doing the work, and while he claimed it wasn't rocket science, he did indicate he doubted GM would put this on dealers for the full recall, it was just that much more time required to do the job.
Fortunately, at this time, warranties still apply. The time will come when cars will be out of warranty, hopefully by then, replacement prices will drop, and refurbished units will be offered.