Bug introduced in 13.0 and persisting through 13.1. This bug is not present in macOS only in Windows.
With Mathematica 13.1 I see the following issue with the right side frame changing based upon the number of elements plotted. Specifically, with 1000 elements the right-side frame line is shown but with 1024 (and other numbers of elements) the right-side frame line does not show. This was not occurring in prior versions.
I am looking for a consistent fix.
$Version: "13.1.0 for Microsoft Windows (64-bit) (June 16, 2022)"
SetOptions[ListLinePlot, GridLines -> Automatic, Frame -> True,
PlotRange -> All, PlotStyle -> Thick,
BaseStyle -> {FontFamily -> "Gill Sans MT", FontSize -> 14},
LabelStyle -> Directive[Bold], ImageSize -> 500,
ImageMargins -> 20];
ListLinePlot[Range[1024]]
ListLinePlot[Range[1000]]
"13.1.0 for Mac OS X x86 (64-bit) (June 16, 2022)"
$\endgroup$"13.1.0 for Microsoft Windows (64-bit) (June 16, 2022)"
, but not with"12.3.1 for Microsoft Windows (64-bit) (June 19, 2021)"
. Please report it to the support. $\endgroup$