The nintendo team released anew system update for switch-5.0.2. If you want to improve the stabiliity of your switch, then you can update it. Or you want to homebrew your switch in the future, please keep your switch in the lower firmware version.
Improvements Included in Version 5.0.2 (Distributed 4/16/2018)
General system stability improvements to enhance the user’s experience, including:
■ Resolved an issue that caused motion controls to respond incorrectly when playing games that use the feature
■ Resolved an issue that caused user icons for recommended friends to not display correctly