2016 Malibu - Park Switch

Put car in PARK, shuts the engine off; however a message comes on screen “shift to park” and when I moved the shift back and forth in the park position, the message goes off.

The Park switch is out of adjustment or failing.