This error was resolved by installing the following package "Microsoft Visual C++ Redistributable latest supported downloads"
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Note: You can find the error here: C:...\Local\Google\AndroidStudio2024.2\log\idea.txt