Easily Fix the Exception on Invalid Stack in Windows 11 (3 Ways)

You can learn why exception on invalid stack in Windows 11 and 3 easy methods to fix it. Every method includes a detailed tutorial. Keep reading to know more detailed information.


By Clytze Updated on October 18, 2022

Share this: instagram reddit

Why Exception on Invalid Stack in Windows 11?

Recently, more and more users reported that after installing Windows 11 or upgrading to Windows 11 on their computer, there will be an exception on the invalid stack in Windows 11. You will see the EXCEPTION_ON_INVALID_STACK stop code as shown in the image below. Once this error occurs, you cannot start your computer normally.

Error Message

This error is usually caused by the following common reasons.

  • Boot Configuration Data (BCD) is missing or corrupted.
  • Corrupted Windows system files.
  • There are bad sectors on the hard drive.

Once you understand the reasons, you can read on to learn how to fix this error for three different reasons.

How to Fix Exception on Invalid Stack in Windows 11

Next, this article will provide solutions for each of the three previously mentioned causes in turn, including rebuilding the BCD, using a system scan tool and cloning the disk with free software. You can try each of these methods in turn to help you fix the error, and each method will have a specific graphic tutorial.

Fix 1. Rebuild the Boot-Related Data

The first method is to rebuild the BCD to fix this problem, which is mainly for the exception on invalid stack Windows 11 caused by the loss or corruption of BCD information. To fix the boot configuration data, you need to open the Command Prompt in Windows RE to achieve the goal. Follow the steps below.

Step 1. Insert a compatible Windows 11 installation media and press any key to boot from it.

Step 2. Click on Repair your computer in the bottom left corner.

Step 3. After the Advanced Startup menu pops up, click on Troubleshoot > Advanced Options > Command Prompt.

Step 4. Paste the following commands one by one and press Enter.

  • bootrec.exe /fixmbr
  • bootrec.exe /fixboot
  • bootrec.exe /scanos
  • bootrec.exe /rebuildbcd

Rebuild BCD Command

Once all the commands above have been processed successfully, close the Command Prompt window and allow your computer to boot up normally. Check if the error is fixed.

Fix 2. Use the SFC Scan

The second method is for this problem caused by corrupted system files. It is recommended that you first run the SFC (System File Checker) tool to fix exception on invalid stack in Windows 11. To do this, you need to use the Windows installation media to enter Windows RE (Recovery Environment) and run the appropriate command line. In addition, you can also enter Win-RE by following the steps below.

Step 1. Turn off your computer, and then press the Power button to turn it on. As soon as the screen lights up, hold the Power button again to turn off the computer.

Step 2. Keep turning on and turning off your computer several times until you see a blue screen with Recovery. Click the See advanced repair options button.

Step 3. In the Choose an option window, click Troubleshoot > Advanced options > Command Prompt.

Step 4. In the Command Prompt window, type sfc /scannow and press Enter to execute this command.

SFC Scannow

Step 5. Wait until the scan is completed. Then exit Command Prompt and boot your computer normally to check if the exception on invalid stack in Windows 10/11 error is fixed.

Fix 3. Perform the Disk Clone via Free Cloning Software

In the third case, if this error is caused by a bad sector on the disk. If the scope is relatively small, you can use the Windows CHKDSK utility to fix it. However, this tool sometimes does not work or causes data loss according to users' reports.

Therefore, to be on the safe side, it is recommended that you choose a more comprehensive and secure software to help you, such as AOMEI Backupper Standard.

  • It is a free disk cloning software that you can use to clone a disk containing bad sectors to another disk.
  • Its Intelligent Clone feature can automatically identify and skip the bad sectors on the source disk to successfully clone other parts to the target disk.
  • What's more, after cloning you can successfully boot your computer from the cloned disk.

Next you can follow the detailed step-by-step tutorial to get started.

Part 1. Create a Bootable Disk

Due to the " Exception on invalid stack in Windows 11" error on your computer, you can't boot your computer properly. So, before cloning the disk, you need to create a bootable USB drive first. Please follow the steps below.

Step 1. Download and install AOMEI Backupper Standard on another computer that can run properly.

Download FreewareWin 11/10/8.1/8/7/XP
Secure Download

Step 2. Connect your USB drive to this computer. Then enter the main interface of the software.


The operation of creating bootable media will delete all the data in the drive. Therefore, you'd better make a backup of this USB drive first.

Step 3. Click Tools > Create Bootable Media and follow the prompts to complete the subsequent steps.

Create Bootable Media

Part 2: Cloning a Disk with Bad Sectors

Step 1. Connect the USB drive to the problematic computer, and then boot the computer from the bootable USB drive.

Step 2. Wait for a while and you will be automatically taken to the software page of AOMEI Backupper Standard. Then click Clone > Disk Clone.

Disk Clone


The standard version only supports MBR to MBR (system disks), and data disk clone. If you want to clone GPT to GPT, or clone disks between GPT and MBR, you can upgrade to the professional version.

Step 3. Choose the disk with bad sectors as the source disk. Then, click Next.

Select Source Disk

Step 4. Choose another disk as the destination disk. Then, click Next.

Select Destination Disk


If your target disk is not new and it contains some important files, it is recommended that you backup files to external hard drive in advance. The reason is that the target disk will be wiped after cloning.

Step 4. If your target disk is an SSD, you can tick SSD Alignment checkbox to make the SSD perform better. Confirm your operations and click Start Clone.

Tick SSD Alignment


  • Edit Partitions: This feature can help you to change the partition size automatically or manually. And it’s available in the professional version or higher versions.
  • Sector By Sector Clone: If your target disk is equal to or larger than the source disk, you can use this feature and it will help you clone all sectors, whether they are used or not. 


This article describes 3 easy ways to help you fix “exception on invalid stack in Windows 11” error. If it's because of bad sectors on the disk, you can use the free disk cloning software AOMEI Backupper Standad to help you. It can create bootable media to boot your problematic computer and complete the cloning process by automatically skipping the bad sectors. After cloning, you can successfully boot your computer from the cloned disk.

Whether you want to clone from a small disk to a large one or from a large one to a small one, its Disk Clone feature can help you achieve it. Besides, it also has System Clone and Partition Clone features to meet your different needs.

Clytze · Editor
Clytze, an editor at AOMEI Technology, is passionate about safeguarding your digital world. She dedicates her expertise to empower users like you in data security and recovery. She firmly believes that everyone should have the tools and knowledge to protect their digital assets through computer backup, seamless disk cloning, and efficient file synchronization. Clytze is your trusted guide on the journey to data safety.