It is relevant in so far as the error occurred when Audacity attempted to open the “recording” device.
The relevant setting in Audacity is the “Project Rate” (lower left corner of the main Audacity window).
Where are you setting the sample rate for the Scarlett?