Quickly grabbing and releasing textbox focus causes a multitude of issues

Capturing and releasing a TextBox’s focus in quick succession causes a multitude of issues, from UI bugs to errors.
This can be reproduced with the following snippet under a textbox:

script.Parent.Focused:Connect(function()
	script.Parent:ReleaseFocus()
	script.Parent:CaptureFocus()
end)

Visual aids:
(Studio Emulator) The emulator keyboard sticks on-screen and many errors are produced

(iOS Client) The screen jitters as the keyboard appears

Repro place:
textboxmobile_repro_a.rbxl (58.9 KB)