Error in custom build template for Godot 4.3

Godot Version

Godot-4.3RC2

Question

ERROR: System.TypeInitializationException: The type initializer for ‘Godot.Viewport’ threw an exception.
—> Godot.GodotObject+NativeMethodBindNotFoundException: Unable to find the native method bind. (Method 'Viewport.set)
at Godot.GodotObject.ClassDB_get_method_with_compatibility(StringName type, StringName method, UInt64 hash)
at Godot.Viewport…cctor()
— End of inner exception stack trace —
at Godot.Viewport.GetMousePosition()
at BtlEditor.CoreScripts.Utils.Extensions.PopupPosition(Popup popup)
at BtlEditor.GameScreen.Scripts.Panel.LandPanel.OnMouseSelected(Vector2 position, Int64 buttonIndex)
at Godot.Tree.ItemMouseSelectedTrampoline(Object delegateObj, NativeVariantPtrArgs args, godot_variant& ret)
at Godot.DelegateUtils.InvokeWithVariantArgs(IntPtr delegateGCHandle, Void* trampoline, godot_variant** args, Int32 )
My custom build template caused this error. The build configuration is as follows:
target = “template_release”
platform = “windows”
arch = “x86_64”

debug_symbols = “no”
lto = “full”
production = “yes”
optimize = “speed”
module_mono_enabled = “yes”
disable_3d = “yes”
openxr = “no”
extra_suffix = “BtlEditor”
minizip = “no”
opengl3 = “no”
use_llvm = “yes”