Could you share your system details?
You can intentionally trigger a crash by pressing and holding F3+C for a few seconds while ingame. The resulting crash report should contain all details that are of interest.
Does the rectangle in the video have the same size as Minecraft during rendering (in terms of pixel) / Is more visible in the video when you put Minecraft in full screen vs when you have it in windowed mode?