YouFor future reference, you need to define DEBUG_DEFAULT_INTERRUPT_HANDLERS
in your preprocessor macros to capture the real cause of the hardfault interrupt.
Unfortunately, I don't know how to do this with the STM32CubeIDE. Here is a tutorial on how to do it with VisualGDB and hopefully this points you in the right direction: https://visualgdb.com/tutorials/arm/tracing/traceback/