Getting error message when running a pivot_wide

We can't copy the sample data from a screenshot unless we manually type each value and that is unlikely to happen. (that is why they are considered a bad practice here).

To help us help you, could you please prepare a reproducible example (reprex) illustrating your issue? Please have a look at this guide, to see how to create one: